﻿#include "pch.h"
#include <iostream>
class BsLab {
public:
	int X;

	BsLab(int x) {
		X = x;
		std::cout << "Base class constructor" << X << std::endl;
	}
};

class Derived : public BsLab {
public:
	std::string Name;

	Derived(int x, std::string str) : BsLab(x)
	{
		Name = str;
		std::cout << "Derived class constructor" << str << std::endl;
	}
};
